package com.shujia.wyh.day05;

/*
    比较两个数据是否相等。参数类型分别为两个byte类型，两个short类型，两个int类型，两个long类型，并在main方法中进行测试

 */
public class FunctionTest5 {
    public static void main(String[] args) {
        byte a1 = 3;
        byte b1 = 3;
        boolean res1 = isEquals(a1,b1);
        System.out.println(res1);

        short a2 = 4;
        short b2 = 6;
        boolean res2 = isEquals(a2, b2);
        System.out.println(res2);

    }

    public static boolean isEquals(short s1,short s2){
        return s1==s2;
    }

    public static boolean isEquals(byte b1, byte b2) {
        return b1 == b2;
    }
}
